home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
dev
/
amos
/
AMOSList-0998.lzh
/
AMOSLIST
/
000011_bounce-amos-li…net@onelist.com_Tue Sep 1 18:35:54 1998.msg
< prev
next >
Wrap
Text File
|
1998-10-01
|
4KB
|
125 lines
>From bounce-amos-list--871-mcox=access.digex.net@onelist.com Tue Sep 1 18:35:54 1998
Received: from onelist.com (pop.onelist.com [209.207.164.13])
by pony-1.mail.digex.net (8.8.8/8.8.8) with SMTP id SAA14311
for <mcox@access.digex.net>; Tue, 1 Sep 1998 18:35:52 -0400 (EDT)
Received: (qmail 747 invoked by alias); 1 Sep 1998 22:39:26 -0000
Received: (qmail 576 invoked from network); 1 Sep 1998 22:39:20 -0000
Received: from unknown (HELO neodymium.btinternet.com) (194.73.73.83) by pop.onelist.com with SMTP; 1 Sep 1998 22:39:20 -0000
Received: from np5gt [195.171.236.153] by neodymium.btinternet.com with smtp (Exim 1.70 #1) id 0zDz0R-0001p3-00; Tue, 1 Sep 1998 23:34:32 +0100
Message-ID: <002101bdd5f8$c052cee0$99ecabc3@np5gt>
From: "John Glanville" <John.Glanville@btinternet.com>
To: <amos-list@onelist.com>
Date: Tue, 1 Sep 1998 23:23:44 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Mailing-List: list amos-list@onelist.com; contact http://www.onelist.com
Delivered-To: mailing list amos-list@onelist.com
Precedence: bulk
Reply-to: amos-list@onelist.com
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01BDD5FF.8FE70260"
Subject: [amos-list] Hey! Ne1 Like Joysticks?
Status: O
X-Status:
From: "John Glanville" <John.Glanville@btinternet.com>
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01BDD5FF.8FE70260
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hey! Look! At this=85 Ne1 want a piece of code that turns the joystick =
input 2 + or -..
Eg.
J=3DJoy(1) ;J=3D2 ; Joystick is Down!
K=3DJ-2 ;k=3D0
P#=3DJ/4.0 ;P#=3D0.5
P=3DP# ;P=3D0
I=3DSgn(J) ;I=3D1
if P#=3DP ;This isn=92t true 0.5<>0
X=3DSgn(J-6)*I
End If
If P=3D0 ;This is true
Y=3DI*(K+K+1) ;Y=3D1
End If=20
Say you push the joystick up it returns y=3D-1 X=3D0!
If You Push Joystick Left then X=3D-1 Y=3D0
If You Push Joystick left Diagonally Up X=3D-1 and Y=3D-1
You Could use this in a game!! Something similar 2 tron!
Where U only need the direction in +1=92s or =961=92s!
I=92ve used it and found it gets rid of annoying and slow If =
statements!!!!
Or U could just Delete this as it is a pointless waste of Virtual Paper! =
Unless You have printed it in which case! Help!
------=_NextPart_000_0008_01BDD5FF.8FE70260
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><B><FONT face=3D"Courier New">
<P>Hey! Look! At this… Ne1 want a piece of code that turns the =
joystick=20
input 2 + or -..</P>
<P>Eg.</P>
<P>J=3DJoy(1) ;J=3D2 ; Joystick is Down!</P>
<P>K=3DJ-2 ;k=3D0</P>
<P>P#=3DJ/4.0 ;P#=3D0.5</P>
<P>P=3DP# ;P=3D0</P>
<P>I=3DSgn(J) ;I=3D1</P>
<P>if P#=3DP ;This isn’t true =
0.5<>0</P>
<P>X=3DSgn(J-6)*I</P>
<P>End If</P>
<P>If P=3D0 ;This is true</P>
<P>Y=3DI*(K+K+1) ;Y=3D1</P>
<P>End If </P>
<P>Say you push the joystick up it returns y=3D-1 X=3D0!</P>
<P>If You Push Joystick Left then X=3D-1 Y=3D0</P>
<P>If You Push Joystick left Diagonally Up X=3D-1 and Y=3D-1</P>
<P>You Could use this in a game!! Something similar 2 tron!</P>
<P>Where U only need the direction in +1’s or =
–1’s!</P>
<P>I’ve used it and found it gets rid of annoying and slow If=20
statements!!!!</P>
<P>Or U could just Delete this as it is a pointless waste of Virtual =
Paper!=20
Unless You have printed it in which case!=20
Help!</P></B></FONT></DIV></BODY></HTML>
------=_NextPart_000_0008_01BDD5FF.8FE70260--